package server.business.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Select;
import server.main.config.cache.MybatisPlusRedisCache;
import server.business.pojo.AboType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author Galaxy
* @description 针对表【abo_type(ABO血型)】的数据库操作Mapper
* @createDate 2022-11-08 12:46:23
* @Entity server.business.pojo.AboType
*/
@Mapper
//@CacheNamespace(implementation = MybatisPlusRedisCache.class)
public interface AboTypeMapper extends BaseMapper<AboType> {

    /**
     * 根据code查询
     * @param code
     * @return
     */
    @Select("select * from abo_type where code=#{code}")
    AboType selectByCode(String code);
}




